﻿using BW.IBll;
using BW.Model;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace BW.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class StatesTypeController : ControllerBase, IStatesTypebLL
    {
         public StatesTypeController(IStatesTypebLL bll)
        {
            Bll = bll;
        }

        public IStatesTypebLL Bll { get; }


        /// <summary>
        /// 绑定职业下拉框
        /// </summary>
        /// <returns>返回受影响行数</returns>
        [HttpGet]
        public List<StatesType> statesTypes()
        {
            try//异常处理
            {
                return Bll.statesTypes();
            }
            catch (Exception)
            {

                throw;
            }
         
        }
    }
}
